-- GENERATED SPELL FOR [Bishop Street] --


function spell0_27246(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(20820,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27246', 2500, 1)
end

function spell1_27246(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(11974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27246', 30276, 1)
end

function Sorts_27246(pUnit, Event)
local choix_sorts_27246 = math.random(0, 1)
if choix_sorts_27246 == 0 then
pUnit:RegisterEvent('spell0_27246', 1, 1)
end
if choix_sorts_27246 == 1 then
pUnit:RegisterEvent('spell1_27246', 1, 1)
end
end

function mob27246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27246', math.random(1500, 3000), 1)
end

function mob27246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27246, 1, 'mob27246_Action')
RegisterUnitEvent(27246, 2, 'mob27246_Leave')
RegisterUnitEvent(27246, 3, 'mob27246_Kill')
RegisterUnitEvent(27246, 4, 'mob27246_Die')
